package cn.anecansaitin.jep.parser.ast.node.statement;

import cn.anecansaitin.jep.parser.ast.node.expression.Expression;

public class While extends Statement {
    private final Expression condition;
    private final Statement body;

    public While(Expression condition, Statement body, int line, int column) {
        super(line, column);
        this.condition = condition;
        this.body = body;
    }

    public Expression condition() {
        return condition;
    }

    public Statement body() {
        return body;
    }
}